<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="format-detection" content="telephone=no" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <script src="../public/lobster/js/public.js"></script>
    <link rel="stylesheet" type="text/css" href="../public/lobster/icon/iconfont.css">
    <link rel="stylesheet" href="../public/lobster/css/public.css">
    <link rel="stylesheet" href="../public/lobster/css/shared.css">
	<link rel="stylesheet" href="../public/lobster/css/href.css?20170421">
    <script src="../public/lobster/js/lick.js"></script>
    <script src="../public/lobster/js/click.js"></script>
    <title>我的订单</title>
    
      <style>
        .order div.popu-main {
            width: 5.4rem;
        }
        .order  div.popu-main div{
            width: 100%;
            padding: .05rem .1rem;
        }
        .order #morder1 div.popu-main div span{
            display: inline-block;
            font-size: .4rem;
            height: .45rem;
        }
        .order #morder1 .guessword{
            height: .9rem;
            float: left;
            width: 2.5rem;
            background: url("../public/lobster/images/tcdw.png") no-repeat;
            background-size: 1.42rem .35rem;
            background-position:left bottom;
        }
        .order div.popu-main div:after{
            height: 0;
            content: "";
            display: block;
            clear: both;
        }
        .order .detail-order {
            padding:0;
        }
        .detail-order table tr{
            border-bottom: 1px solid #eee;
        }
        .detail-order table td{
            text-align: left;
            padding: .2rem 0;
            padding-left: .1rem;
        }
        td{
            color:#646464;
        }
        .detail-order table td p{
            text-align: left;
            color: #000;
            padding-bottom: .1rem;
        }
        .detail-order table td:nth-child(1){
          width: 30%;
        }
        .detail-order table td:nth-child(2){
            width: 24%;
        }
        .detail-order table td:nth-child(3){
            width: 24%;
        }
        .detail-order table td:nth-child(4){
            width: 23%;
        }
        .detail-order table p.redtime{
            color:#fc4630;
        }
        .popu-main button{
            float: right;
            border:none;
            width: 2rem;
            padding: .2rem .1rem;
            font-size: .28rem;
            margin-bottom: .3rem;
            border-radius: 15px;
        }
        .popu-main button:nth-child(3n){
            margin-right: 0;
        }
        .popu-main:after{
            content: "";
            height: 0;
            clear: both;
            display: block;
        }
        .order .person_l {
            width: 2rem;
            float:left;
        }
        .person_fx{
            float: left;
            width: 1.75rem;
            height: 1.4rem;
            font-size: .26rem;
            text-align: center;
            padding-top: .55rem;
        }
        .person_fx p{
            font-size: .26rem;
            text-align: center;
        }
        .ztpick{
            color: #fff!important;
            background: #862126;
        }
        .order #morder1 .popu-title {
            margin-bottom: 0;
            font-size: .3rem;
            text-align: left;
            text-indent: .3rem;
            height: 1.56rem;
            line-height: .8rem;
            background: #eee;
            background: url("../public/lobster/images/tchead.png") no-repeat;
            background-size: 100% 100%;
            border-bottom:none;
        }
       .order  #morder1 .popu-main {
            width: 100%;
            margin: 0 auto;
            padding: .8rem .6rem;
            background: url("../public/lobster/images/tcbg.png") no-repeat;
            background-size: 100% 100%;
            border-radius: 10px;
        }
        .order #morder1 .popu {
            background-color: transparent;
        }
        .order #morder1 div.popu-main>div {
           height: .9rem;
        }
        .order #morder1 .popu {
            width: 6rem;
        }
        .order #morder1 button {
            color: #fff!important;
            background: #FEBB2C!important;
            font-size: .4rem;
            float: right;
            border: none;
            width: 1.8rem;
            height: .8rem;
            padding:0;
            margin-bottom: 0;
        }
        .order #morder1 .popu-title p {
            font-size: .6rem;
            color: #FEBB2C;
            position: absolute;
            top:-.4rem;
            right: .2rem;
        }
        .shouhuo{
        	background:#5f3dcc;
        }
        
        
        <!--订单合并弹出窗样式  -->
    	 .pop-detail{
            width: 100%;
        }
        .pop-detail li{
            padding-bottom: 0;
        }
        .pop-detail li{
            float: left;
            font-size: .24rem;
            height: 2.2em;
            line-height: 2.2em;
        }
        .pop-detail li:nth-child(1){
            width: 40%;
            word-break:keep-all;
            white-space:nowrap;
            overflow:hidden;
            text-overflow:ellipsis;
        }
        .pop-detail li:nth-child(2){
            width: 10%;
        }
        .pop-detail li:nth-child(3){
            width: 25%;
        }
        .pop-detail li:nth-child(4){
            width: 15%;
            display: -webkit-box;
            -webkit-line-clamp: 1; 
            -webkit-box-orient: vertical;
            text-overflow:ellipsis;
            word-break: break-all;
            overflow: hidden;
        }
        .pop-detail li:nth-child(5){
            width:10%;
            position: relative;
        }
        .pop-detail ul:after{
            content: "";
            height:0;
            display: block;
            clear:both;
        }
        .pop-detail .select{
            opacity: 0;
            position: absolute;
            z-index: 10;
            top:0;
            left: 0;
            bottom: 0;
            right: 0;
            width: 80%;
            height:80%;
            
        }
        .pop-detail li:nth-child(5) p{
            display: inline-block;
            width: 60%;
            height:90%;
            background: url(../public/lobster/images/nred.png) no-repeat;
            background-size: 100%;
            position: absolute;
            top: 10%;
            left: 0;
            padding-bottom:0;
            
        }
        .order .logist_top {
  		  padding-top: .3rem;
		}
		.hborder{
			height:.6rem;
			width:100%;
			background:#37aafc;
			font-size:.28rem;
		}
		.hborder p{
			font-size:.28rem;
			float:left;
			line-height:.6rem;
			padding-left:.15rem;
			color:#fff;
		}
		.hborder button{
			padding:.02rem .1rem;
			margin-left:.1rem;
			text-align:center;
			color:#37aafc;
			border:none;
			background:#fff;
			border-radius:5px;
			font-size:.25rem;
		}
		.hborder>span{
			float:right;
			height:.6rem;
			line-height:.6rem;
			margin-right:.1rem;
			color:#fff;
			font-size:.28rem;
		}
		.order #morder2 .popu {
		    position: absolute;
		    top: 20%;
		    left: 5%;
		    width: 90%;
		    height:7rem;
		    background: #fff;
		    z-index: 110;
		     overflow: hidden;
		}
		.order #morder2 div.popu-main {
		     text-align: center;
		     min-height:4.5rem;
		     max-height:4.5rem;
		    position: absolute;
		    top: .9rem;
		    left: 0;
		    bottom: 1rem;
		    right: 0;
		    visibility: visible;
		    overflow: auto;
		}
		.order #morder2 .popu .btn {
		    width: 85%;
		    position: absolute;
		    bottom: .1rem;
		    left:7.5%;
		}
	
    </style>
    
</head>
<body class="order">
<!--  合并订单按钮-->
	 <div class="hborder">
			<p><span>如果您想合并订单请点击合并订单按钮</span> <button class="hbpick">合并订单</button></p>
			<span class="iconfont icon-cha1 notice"></span>
	</div> 
	<div style="clear: both;"></div>	
    <div class="logist_top">
    
        

		
		
			<div class="log_head">
				<p>
																
					
					
					购买时间：<span>2017-10-09 15:43:54</span>
															
					
										
					
					

				
				</p>
			<div class="person_log">
				<img src="http://dqimgs.shdqdzsw.com/F973SbtIIzzEzXWwmYaYsPUQ.png">
				<div class="hlog_infor">
					<p>竹炭牙刷1支</p>
					<p>X <span>1</span></p>
					
				</div>
			</div>
			<div class="person_l">
			<p>
				
		       	
		       	<span class="redx">付款完成未提货</span>
		       		
		       	
		       	
		       	
		       	
		       	
		       	
		       	
		       	
		       	
		       	
		       	
		       	
		       	
		       	
		       	
		       	
		       	
		       	
		       	
			</p>
		</div>
		<div class="person_fx">
          	<p>
           		
            </p>
        </div>
			<div class="person_r">
				<div class="box">
				    <!--现金券升级失败后可以转换为代金券  -->
					  
					<!--付款完成未使用时也可以转换为代金券  -->
					  
				    
				    	
							<button class="yabao"
								onclick="javascript:window.location.href=('jiou.html?depotId=81251a2fdb7b4b94bcb929a3e7b8da12&goodsId=50000120')">升级</button>
						
						<button class="hongbao"   style="background:red; color:white"
							onclick="javascript:window.location.href=('openRedPack.html?depotId=81251a2fdb7b4b94bcb929a3e7b8da12&goodsId=50000120')">红包</button>
						<!-- 加入猜涨跌 -->
						
					
					
						<button class="quit" onclick="Return('81251a2fdb7b4b94bcb929a3e7b8da12')">退货</button>
					
					
					
						
							<button class="pick"
								onclick="javascript:window.location.href=('pickup.html?depotId=81251a2fdb7b4b94bcb929a3e7b8da12')">提货</button>
							
						
					
					
					
			</div>
		</div>
		<div class="person-detail">
         	单价：<span>19.0 
         				
         		</span> 总价：<span>19.0 
        				</span>
         	<b onclick="shou(this)">详情  <i class="iconfont icon-iconfontsanjiao1"></i></b>
    	</div>
			<!-- 详情相关 -->
			<!-- 正常商品,鸡藕,红包 -->
			
				<div class="detail-order" >
		            <p>订单编号 : <span>81251a2fdb7b4b94bcb929a3e7b8da12</span></p>
		            <p>运单号码 :
		            	<span>
		            		
		            			暂无
		            		
		            		
		            			
		            					
		            	</span>
		            </p>
		            <p>承运公司 :
		            	<span>
		            		
		            			暂无
		            		
		            		
		            			
		            		
		            	</span>
		            </p>
		        </div>
			
			<!-- 涨跌,点位 -->
			
			</div>
		
			<div class="log_head">
				<p>
																
					
															
					
					
					订单完成时间：<span>2017-10-09 13:32:34</span>
										
					
					

				
				</p>
			<div class="person_log">
				<img src="http://dqimgs.shdqdzsw.com/3xNWeHR_cqGwJqVWXl7_EyNl.jpg">
				<div class="hlog_infor">
					<p>休闲零食 枸杞糕240g/袋</p>
					<p>X <span>1</span></p>
					
				</div>
			</div>
			<div class="person_l">
			<p>
				
		       	
		       	
		       	<span class="redx">正在发货</span>
		       		
		       	
		       	
		       	
		       	
		       	
		       	
		       	
		       	
		       	
		       	
		       	
		       	
		       	
		       	
		       	
		       	
		       	
		       	
			</p>
		</div>
		<div class="person_fx">
          	<p>
           		
            </p>
        </div>
			<div class="person_r">
				<div class="box">
				    <!--现金券升级失败后可以转换为代金券  -->
					  
					<!--付款完成未使用时也可以转换为代金券  -->
					  
				    
					
					
					
					
					<button class="shouhuo"
						onclick="enterTakeGoods('6bb881a42f3d48eb8742027f5faba888')">收货</button>
					
					
			</div>
		</div>
		<div class="person-detail">
         	单价：<span>15.5 
         				
         		</span> 总价：<span>15.5 
        				</span>
         	<b onclick="shou(this)">详情  <i class="iconfont icon-iconfontsanjiao1"></i></b>
    	</div>
			<!-- 详情相关 -->
			<!-- 正常商品,鸡藕,红包 -->
			
				<div class="detail-order" >
		            <p>订单编号 : <span>6bb881a42f3d48eb8742027f5faba888</span></p>
		            <p>运单号码 :
		            	<span>
		            		
		            		
		            			已发货
		            					
		            	</span>
		            </p>
		            <p>承运公司 :
		            	<span>
		            		
		            		
		            			已发货
		            		
		            	</span>
		            </p>
		        </div>
			
			<!-- 涨跌,点位 -->
			
			</div>
		
	
		
	</div>
       

    <!--弹窗-->
    <div class="morder" id="morder">
		<div class="popu">
			<div class="popu-title">
				<i class="iconfont icon-tishi"></i> 提示
			</div>
			<div class="popu-main">
				<h3>您是否确认退货？</h3>
				<p>
					账户：<span id="username"></span>
					<input type="hidden" id="orderId">
					<input type="hidden" id="depotId">
				</p>
				<p>
					退货金额：<span id="refundMoney"></span>
				</p>
			</div>
			<div class="btn">
				<a href="javascript:void(0);" class="pay" onclick="coulse()">确 定</a> <a href="#"
					class="settle">取 消</a>
			</div>
		</div>
	</div>
  <!--   <div class="morder" id="morder1">
        <div class="popu">
        	<input type="hidden" id="sjgoodsId">
        	<input type="hidden" id="sjdepotId">
            <div class="popu-title"><i class="iconfont icon-tishi"></i>升级<i class="iconfont icon-cha" style="float: right;padding-right: .2rem;color:#c3272b;"></i></div>
            <div class="popu-main">
                    <button class="guessjiou" onclick="gojiou()">猜鸡藕</button>
                    <button class="guessred" onclick="gozhangdie()">猜涨跌</button>
            </div>
        </div>
    </div> -->
    <div class="morder" id="morder1"  >
        <div class="popu">
        	<input type="hidden" id="sjgoodsId">
        	<input type="hidden" id="sjdepotId">
            <div class="popu-title"><p class="iconfont icon-cha1"></p></div>
            <div class="popu-main">
                  <div>
                      <!--猜鸡藕的升级按钮  -->
                      <div class="guessword"><span>猜鸡藕</span></div>
                      <button class="guessjiou" onclick="gojiou()">升级</button>

                      <!--拆红包的升级按钮  -->
                    <!--    <div class="guessword"><span>拆红包</span></div>
                      <button class="guessjiou" onclick="gohongbao()">升级</button>  -->

                      <!--石头剪刀布的升级按钮  -->
                      <!-- <div class="guessword"><span>猜&nbsp;&nbsp;&nbsp; 拳</span></div>
                      <button class="guessjiou" onclick="gomorra()">升级</button> -->
                      
                      <!--点位的升级按钮  -->
                      <div class="guessword"><span>点&nbsp;&nbsp;&nbsp;位 </span></div>
                      <button class="guessjiou" onclick="goPoint()">升级</button>
                  </div>
            </div>
        </div>
    </div>
  <!--底部导航栏-->
 		<nav class="nav">
			<ul id="list">
				<li>
					<a href="index.html">
						<img src="../public/lobster/images/navbar01.png" alt="">
					</a>
				</li>
				<li>
					<a href="lotteryInfo.html">
						<img src="../public/lobster/images/navbar02.png" alt="">
					</a>
				</li>
				<li>
					<a href="center.html">
						<img src="../public/lobster/images/onnavbar03.png" alt="">
					</a>
				</li>
			</ul>
		</nav>
     	
    
    <!--点击提货按钮弹出订单合并窗口  -->

<div class="morder" id="morder2">
    <div class="popu">
        <div class="popu-title"><i class="iconfont icon-tishi"></i> 合并提货  <p style="text-align: center;float:right;padding-right: .2rem;">运费：<span id="yunfei">0</span>元</p></div>
        <div class="popu-main" style="width: 95%;">
            <div class="pop-detail">
            
            
                <ul>
                    <li>竹炭牙刷1支<input type="hidden" value="81251a2fdb7b4b94bcb929a3e7b8da12"></li>
                    <li>x<span class="num">1</span></li>
                    <li>￥<span>
                    19.0
                    </span></li>
                    <li><span class="sort">山茶油</span></li> 
                    <li>
                    	<input name="select" type="checkbox" value="" class="select"/>
                    	<p></p>
                    </li>
                      <li><input type="hidden" id="freight" value="10.0"> </li>
                      <li><input type="hidden" id="chargeMoney" value="2.0"> </li>
                      <!-- 显示总运费 -->
                      <li><input type="hidden" id="totalFreight" value="10.0"> </li>
                </ul>
                
            </div>
        </div>
        <div class="btn">
            <a href="javascript:void(0);" class="pay" onclick="totalpick()">合并提货</a>
            <a href="#" class="settle">取 消</a>
        </div>
    </div>
</div>
    
</body>
<!-- <script src="js/jq-2.1.0.js"></script>
<script>
    //        下单弹窗
    $('.quit').bind('click',function(){
        $(window).scrollTop(0);
        $('html').css("overflow",'hidden');
        $('#morder').css('display','block');
        $('.settle').bind('click',function(){
            $('#morder').css('display','none');
            $('html').css("overflow",'auto');
        })
    })
    function coulse(){
        window.location.href="order.html";
    }
    function shou(obj){
        $(obj).find("i").toggleClass("icon-iconfontsanjiao1").toggleClass("icon-jinlingyingcaiwangtubiao21");
        $(obj).parent().siblings(".detail-order").toggle();
    }
</script> -->

<script src="../public/lobster/js/jq-2.1.0.js"></script>
<script>
    //        下单弹窗
  /*  $('.quit').bind('click',function(){
       
    }) */
    /* $(function(){
    	window.location.reload();
    }); */
    function shengji(depotid,goodsId){
    	$("#sjdepotId").val(depotid);
    	$("#sjgoodsId").val(goodsId); 	
    	$(window).scrollTop(0);
    	 $('#morder1').css('display','block');
    	window.parent.document.body.addEventListener('touchmove',preventDefault,false);
        $('.icon-cha1').bind('click',function(){
            window.parent.document.body.removeEventListener('touchmove',preventDefault,false);
            $('#morder1').css('display','none');
        })
    }
    function preventDefault(e) { e.preventDefault(); };   
    //兑换积分
    function changeGold(depotId){
    	xxy.popup("提示","确定将本产品兑换成金币？","确认","取消");
    	
    	$('#xxy-popup-done').bind('click',function(){
    		alert("收货成功！");
    		window.location.href="shouhuo.html";
    			// $.ajax({
    			// 	type:"POST",
    			// 	url:"/user/changeGold?v="+Math.random(),
    			// 	data:{
    					
    			// 		'depotId':depotId
    			// 	},
    			// 	dataType:"json",
    			// 	success :function(data){
    			// 		if(data.success){
    						
    			// 			xxone.popup("提示",data.msg,"确认");
       //      				$('#xxone-popup-done').bind('click',function(){
       //      					window.location.reload();
    	  //   				  });
    			// 		}else{
    						
    			// 			xxone.popup("提示",data.msg,"确认");
       //      				$('#xxone-popup-done').bind('click',function(){
       //      					window.location.reload();
    	  //   				  });
    			// 		}
    			// 	}
    				
    			// });
    	});
    }
    function shou(obj){
        $(obj).parent().siblings(".detail-order").toggle();
        $(obj).find("i").toggleClass("icon-iconfontsanjiao1").toggleClass("icon-jinlingyingcaiwangtubiao21");
    }
    
    function enterTakeGoods(depotId){
    	xxy.popup("提示","确认收货？","确认","取消");
    	$('#xxy-popup-done').bind('click',function(){
    		alert('收货成功！');
    		window.location.href = 'shouhuo.html';
    		// $.ajax({
      //   		type:"POST",
      //   		url: "/user/enterTakeGoods?v="+Math.random(),
      //   		data:{
      //   			'depotId':depotId
      //   		},
      //   		dataType:"json",
      //   		success:function(data){
        			
      //   			if(data.success){
      //   				xxone.popup("提示",data.msg,"确认");
      //   				$('#xxone-popup-done').bind('click',function(){
      //   					window.location.reload();
	    	// 			  });
        				
      //   			}else{
      //   				xxone.popup("提示",data.msg,"确认");
      //   				$('#xxone-popup-done').bind('click',function(){
      //   					window.location.reload();
	    	// 			  });
      //   			}
      //   		}	
      //   	});
    		
    	})
    	
    	
    }
    function Return(depotId){
    	xxy.popup("提示","确认退货？","确认","取消");
    	$('#xxy-popup-done').bind('click',function(){
    		alert('收货成功！');
    		window.location.href = 'shouhuo.html';
    		// $.ajax({
      //   		type:"POST",
      //   		url: "/user/ReturnGoods?v="+Math.random(),
      //   		data:{
      //   			"depotId":depotId
      //   		},
      //   		dataType:"json",
      //   		success:function(data){
      //   			if(data.success){
      //   				xxone.popup("提示",data.msg,"确认");
      //   				$('#xxone-popup-done').bind('click',function(){
      //   					window.location.reload();
	    	// 			  });
      //   			}else{
      //   				xxone.popup("提示",data.msg,"确认");
      //   				$('#xxone-popup-done').bind('click',function(){
      //   					window.location.reload();
	    	// 			  });
      //   			}
      //   		}
      //   	});
    		
    	});
    	
    	
    }
    function coulse(){
    	var depotId= $("#depotId").val();
    	$("refundsDiv").hide();
    	$.ajax({
    		type:"POST",
    		url: "/user/refunds.do?v="+Math.random(),
    		data:{
    			"depotId":depotId	
    		},
    		dataType:"json",
    		success:function(data){
    			if(data.success){
    				xxone.popup("提示",data.msg,"确认");
    				$('#xxone-popup-done').bind('click',function(){
    					window.location.href="/user/depot";
    				  });
    				
    			}else{
    				xxone.popup("提示",data.msg,"确认");
    				$('#xxone-popup-done').bind('click',function(){
    					window.location.reload();
    				  });
    			
    			}
    			  
    		}	
    		
    	});
    }
    function getMoney(depotId){
    	 $(window).scrollTop(0);
         $('html').css("overflow",'hidden');
         $('#morder').css('display','block');
         $('.settle').bind('click',function(){
             $('#morder').css('display','none');
             $('html').css("overflow",'auto');
         })
    	$.post(
    		"/user/orderJson",
    		{
    			depotId : depotId
    		},
    		function(data){
    			$("#refundMoney").html(data.totalMoney);
    			$("#orderId").val(data.orderId);
    			$("#depotId").val(data.depotId);
    			$("#username").html(data.u.loginname);
    		}
    	);
	}
    
    //猜鸡藕
    function gojiou(){
    	var depotId = $("#sjdepotId").val();
    	var goodsId = $("#sjgoodsId").val();
    	var url = "/user/jiou?depotId="+depotId+"&goodsId="+goodsId;
    	window.location.href=(''+url);
    }
    

    //拆红包

    
    //猜拳
   
    
    
    //转为代金券
     function changeVoucher(depotId){
    	
    	xxy.popup("提示","确认转换为代金券?","确认","取消");
    	$('#xxy-popup-done').bind('click',function(){
    		var url = "/user/changeVoucher?depotId="+depotId;
    		window.location.href=(''+url);
    	});
    	
    } 
    
    
    
    
    function goPoint(){
    	var depotId = $("#sjdepotId").val();
    	var goodsId = $("#sjgoodsId").val();
    	var url = "/point/toPoint?depotId="+depotId+"&goodsId="+goodsId;
    	window.location.href=(''+url);
    }
    
    
    
    //点击提货，出现弹框，点击取消弹框消失
	$('.hbpick').bind('click',function(){  // .pick为提货按钮class
		$("html").css({"overflow":"hidden","height":"100%"});
		$("body").css({"overflow":"hidden","height":"100%"}); //弹框出现禁止页面滚动事件
        $('#morder2').css('display','block');
        $('.settle').bind('click',function(){  // .settle为弹框取消键的class
            $('#morder2').css('display','none');
            $("html").css({"overflow":"auto","height":"auto"});
    		$("body").css({"overflow":"auto","height":"auto"}); //弹框消失解禁页面滚动事件
        })
    })
    
    
    /*合并订单  */
    var flag=false;
    /*合并订单的id  */
    var goods='';
    function totalpick(){
    	//alert(goods);
		if(!flag){
    		alert("请选择你需要合并的订单!");
    	}else{
    		//合并订单开始
    		//alert(goods);
    		$.ajax({
        		type:"POST",
        		url: "/depot/classifyOrder.do?v="+Math.random(),
        		data:{
        			"goods":goods
        		},
        		dataType:"json",
        		success:function(data){
        			if(data.success){
        				//alert(data.msg);
        				xxone.popup("提示",data.msg,"确认");
        				$('#xxone-popup-done').bind('click',function(){
        					window.location.href="/user/mergepickup?tid="+data.result;
        				  });
        				
        			}else{
        				//alert(data.msg);
        				xxone.popup("提示",data.msg,"确认");
        				$('#xxone-popup-done').bind('click',function(){
        					window.location.reload();
        				  });
        			
        			}
        			  
        		}	
        		
        	});
    		
    	}
    }
	
	function prevent(e){
		e.preventDefault();
	}
	
	$(function(){
        $(".select").bind('change',function(){
            checked();
        })
        
        /*点击合并提货提示框消失  */
         $(".notice").on('click',function(){
            $(".hborder").hide();
        })
    })
    
  /*   function checkorder(){
    	if(!flag){
    		alert("请选择");
    	}else{
    		window.location.href="http://www.baidu.com";
    	}
	} */
	function  checked(){
        var select = $(".select");
        var len = $(".select").length;
        var num=0,total,str="",yunfei=0,Pone=0,Ptwo=0,Pthree=0;Pfour=0;Pfive=0,Psix=0,Pseven=0,Peight=0,Pnine=0,Pten=0,Peleven=0,Ptwelve=0,Pthirteen=0;
        select.each(function(){       	
        	if(this.checked==true){
        		num+=1;
        		this.nextElementSibling.style.background="url(../public/lobster/images/okey.png) no-repeat";
        		this.nextElementSibling.style.backgroundSize="100%";
        		str+=($(this).parent().parent().find("input").val()+",");
        		var numbers=$(this).parent().parent().find(".num").html();
        		var sorts=$(this).parent().parent().find(".sort").html();
        		var freight=$(this).parent().parent().find("#freight").val();
        		var chargeMoney=$(this).parent().parent().find("#chargeMoney").val();
        		var totalFreight=$(this).parent().parent().find("#totalFreight").val();
        		console.log(freight);
        		console.log(chargeMoney);
        		console.log(totalFreight);
        		//yunfei+=parseInt(totalFreight);
        		
        		yunfei+=(parseInt(numbers)*chargeMoney);
        		 if(sorts=="老树纯茶油"){       			
        			Pone=parseInt(freight-chargeMoney);
        		}else if(sorts=="山茶油"){
        			Ptwo=parseInt(freight-chargeMoney);
        		}else if(sorts=="爱之恋"){
        			Pthree=parseInt(freight-chargeMoney);
        		}else if(sorts=="礼盒装纯茶油"){
        			Pfour=parseInt(freight-chargeMoney);
        		}else if(sorts=="包邮"){
        			Pfive=parseInt(freight-chargeMoney);
        		}else if(sorts=="特级山茶油"){
        			Psix=parseInt(freight-chargeMoney);
        		}else if(sorts=="酒"){
        			Pseven=parseInt(freight-chargeMoney);
        		}else if(sorts=="典藏清香"){
        			Peight=parseInt(freight-chargeMoney);
        		}else if(sorts=="茶花蛋"){
        			Pnine=parseInt(freight-chargeMoney);
        		}else if(sorts=="壶装纯茶油"){
        			Pten=parseInt(freight-chargeMoney);
        		}else if(sorts=="30年汾酒"){
        			Peleven=parseInt(freight-chargeMoney);
        		}else if(sorts=="两壶装纯茶油"){
        			Ptwelve=parseInt(freight-chargeMoney);
        		}else if(sorts=="牧童牛"){
        			Pthirteen=parseInt(freight-chargeMoney);
        		} 
        	}else{
        		this.nextElementSibling.style.background="url(../public/lobster/images/nred.png) no-repeat";
        		this.nextElementSibling.style.backgroundSize="100%";
        	}
        })
      	if(num>=20){
        	select.each(function(){
	            if(this.checked==false){
	                $(this).click(function(){
	                	alert("超过20");
	                	return false;
	                })
	            
	            }
          })

        }else{
        	select.each(function(){
                	if(this.checked==false){
                		this.removeAttribute("disabled");
                	}
            })
        }
        if(num==0){
            $("#yunfei").html(0);
            flag=false;
        }else{
        	$("#yunfei").html(yunfei+Pone+Ptwo+Pthree+Pfour+Pfive+Psix+Pseven+Peight+Pnine+Pten+Peleven+Ptwelve+Pthirteen);    
            flag=true;
        }
        goods=str;
       console.log(str);
    }

</script>
</html>